<?php
header('Content-Type:text/html; charset=UTF-8');
$dir="data/cache/";
deldir($dir);
function deldir($dir)
{
		$dh=opendir($dir);
		while ($file=readdir($dh)) 
		{
			if($file!="." && $file!="..") 
			{
				$fullpath=$dir."/".$file;
				
				if(!is_dir($fullpath))
				{
					unlink($fullpath);
				} 
				else
				{
					deldir($fullpath);
				}
			}
		}
		closedir($dh);
		echo "ok";die;
}
